<?php

class Error_ErrorController extends Zend_Controller_Action
{
    public function appAction()
    {
        //var_dump($this->_request->message);
        if(isset($this->_request->log)) {
            error_log($this->_request->log);
        }
        if(isset($this->_request->message)) {
            $this->view->message = $this->_request->message;
        } else {
            $this->view->message = 'Es ist ein System Fehler aufgetreten.' .
                                   '<br> Bitte wende dich an den Administrator.';
        }
        if(isset($this->_request->back)) {

            if(is_array($this->_request->back)) {
                $this->view->back =  $this->view->url($this->_request->back, NULL, TRUE);
            } else {
                               
                $this->view->back = $this->_request->back;
            }
        }
    }
}